#ifndef OPENINGSCREEN_H
#define OPENINGSCREEN_H

#include <boost/thread/thread.hpp>
#include <boost/thread/mutex.hpp>

#include <windows.h>
#include <string>

#include "GlobalMessage.h"
#include "Logger.h"

#define SPLASHSCREEN_WINDOW_TITLE     "Splash_screen"
#define SPLASHSCREEN_WINDOW_CLASS     "appname_splash"
#define SPLASHSCREEN_IMAGE_WIDTH      250
#define SPLASHSCREEN_IMAGE_HEIGHT     232
#define SPLASHSCREEN_DISPLAY_DURATION 2000

class OpeningScreen
{
public:
	OpeningScreen(void);
	~OpeningScreen(void);
	bool Init(HINSTANCE hInstance);
	void Show();
	void Destroy();

	LRESULT msgProc(UINT msg, WPARAM wParam, LPARAM lParam);

private:
	void DrawBitmap(HDC hDC, HBITMAP hBitmap, int x, int y);
	
private:
	HINSTANCE		m_hAppInst;
	HWND			m_hMainWnd;
	HBITMAP			m_hSplashBitmap;
};

#endif


